<?php
signcheck(array($pt,$ver,$imei));
require 'source/data/splashscreen_cache'.$appid.'.php';
if (!$splashinfo)
{
	if (version_compare($ver, '3.0.0', '>=')){
		$splashinfo = array(
				'pic' => '',
				'showtime' => '',
				'type' => '',
				'title' => '',
				'url' => '',
		);
	}
}

if (version_compare($ver, '3.1.2', '<=')){
        $sql = "select id,act_callback_url from tttj.asm_kd_record where device_id = '$imei'";
        $re = getonerecord($sql);
        if($re){
            $sql = "update tttj.asm_kd_record set status = 1 where id=".$re['id'];
            exec_db($sql);
            file_get_contents($re['act_callback_url']);
        }
}

require 'source/data/showduobao'.$appid.'.php';
if (in_array($uid,$testaccount))
{
	$showduobao = 1;
}
$splashinfo['showduobao'] = $showduobao;

//1 表示是审核版 0 不是审核版

if (version_compare($ver, '3.1.4', '<=')) {
//	if($appid == '91'){
//		$splashinfo['examine'] = '1';
//	}else{
//	}
	$splashinfo['examine'] = '0';
} else {
	$splashinfo['examine'] = '1';
}


echo echojson('',1,$splashinfo);
?>